#ifndef _CDELETECOMMAND_H_
#define _CDELETECOMMAND_H_

#include "Commons.h"
#include "IDoUndoCommand.h"

class CSceneObject;

namespace irr
{
	namespace scene
	{
		class ISceneNode;
	}
}

class CDeleteCommand : public IDoUndoCommand
{
public:
	explicit CDeleteCommand (CSceneObject* object);
	virtual ~CDeleteCommand ();

	void redo ();
	void undo ();

private:
	CSceneObject* m_object;
	ISceneNode* m_parent;
	int m_treeParentId;
	IDoUndoCommand* m_changeChildrensParents;
	IDoUndoCommand* m_linkRoomCommand[MAX_ROOM_LINKS];
};

#endif
